package com.gengao.springbootcase.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result_self {
    private Integer code;
    private String msg;
    private Object data;

    public static Result_self success(){
        return new Result_self(1,"success",null);
    }
    public static Result_self success(Object data){
        return new Result_self(1,"success",data);
    }
    public static Result_self error(String msg){
        return new Result_self(1,msg,null);
    }
}
